<?php

namespace JsonLowCode\UI;


use JsonLowCode\Schema;

/**
 * AppLogin 组件
 * @method static AppLogin make(mixed $children = null) AppLink组件
 */
class AppLogin extends Schema
{
    protected string $componentName = "AppLogin";

    /**
     * @param string $title
     * @param string $moduleName
     * @param mixed|null $children
     */
    public function __construct(string $title = "", string $moduleName = "", mixed $children = null)
    {
        parent::__construct();
        $this->title($title);
        $this->moduleName($moduleName);
        $children!==null&&$this->children($children);
    }

    /**
     * @param string $title
     * @return $this
     */
    public function title(string $title = ""): static
    {
        return $this->prop("title",$title);
    }

    /**
     * @param string $moduleName
     * @return $this
     */
    public function moduleName(string $moduleName = ""): static
    {
        return $this->prop("module-name",$moduleName);
    }

    /**
     * @param string|bool $showBg
     * @return $this
     */
    public function showBg(string|bool $showBg = true): static
    {
        return $this->prop("show-bg",$showBg);
    }

}
